package chapter04.example011;
interface Anmial{
    int ID = 1;
    String NAME ="牧羊犬";
    void shout();
    static int getId(){
        return Anmial.ID;
    }
    public void info();
}
interface Action{
    public void eat();
}
class Dog implements Anmial,Action{
    public void eat(){
        System.out.println("喜欢吃骨头");
    }
    public void shout(){
        System.out.println("汪汪....");
    }
    public void info(){
        System.out.println("名称："+NAME);
    }
}
public class Example011 {
    public static void main(String[] args) {
        System.out.println("编号"+Anmial.getId());
        Dog dog = new Dog();
        dog.info();
        dog.shout();
        dog.eat();
    }
}